<link rel="stylesheet" href="/assets/home/css/profile.css">
<div class="user">
    <div class="avatar wow fadeInUp">
        <img src="{$LoginUser['avatar']}" />
    </div>
</div>

<form class="mui-input-group" method="post" enctype="multipart/form-data">
    <div class="mui-input-row">
        <label>邮箱</label>
        <input type="text" name="email" value="{$LoginUser['email']}" class="mui-input-clear" placeholder="请输入邮箱"
            required disabled />
    </div>

    <div class="mui-input-row">
        <label>验证码</label>
        <input type="text" name="code" class="mui-input-clear" placeholder="请输入验证码" required />
    </div>


    <div class="mui-button-row">
        <button type="submit" class="mui-btn mui-btn-primary">确认</button>
        <button type="button" class="mui-btn mui-btn-danger" onclick="history.go(-1)">返回</button>
        <button type="button" id="send" class="mui-btn mui-btn-success">发送邮件</button>
    </div>
</form>
<script>
    $("#send").click(async function () {
        $.ajax({
            type: 'post',
            dataType: 'json',
            url: `{:url('home/business/send')}`,
            success: function (res) {
                //轻提醒
                mui.toast(res.msg, { duration: 1000 })
               

            }
        })

    })

    
</script>